package com.mayisoftware.mayioa.business.plan.api.service;

import com.mayisoftware.mayioa.business.plan.api.domain.PlanAchievement;

import java.util.List;

public interface IPlanArchService {
    /**
     * 根据条件分页查询绩效
     * @param planAchievement 绩效
     * @return 绩效列表
     */
    public List<PlanAchievement> selectPlanAchList(PlanAchievement planAchievement);

    /**
     * 查询不在当前计划中的绩效
     * @param planCfgId 绩效
     * @return 绩效列表
     */
    public List<PlanAchievement> selectPlanAchList(Long planCfgId);

    /**
     * 通过绩效ID查询绩效信息
     * @param planAchId 绩效ID
     * @return
     */
    public PlanAchievement selectPlanAchById(Long planAchId);

    /**
     * 插入新计划绩效
     * @param planAchievement 绩效
     * @return 结果
     */
    public int insertPlanAch(PlanAchievement planAchievement);

    /**
     * 修改计划绩效信息
     * @param planAchievement 计划绩效
     * @return
     */
    public int updatePlanAch(PlanAchievement planAchievement);

    /**
     * 批量删除计划绩效信息
     * @param ids 绩效ID：用,分割
     * @return
     */
    public int deletePlanAchByIds(String ids);

    public Integer selectPlanAchMaxScore();
}
